import axios from 'axios';
import config from './axios.config';
import '../mock';

const http = axios.create(config); //  导入配置参数

export default {
  _image(data) {
    return http.get('api.com', { data });
  },
  _commodity(params) {
    return http.get('abc.com', { params });
  },
  _todayData(params) {
    return http.get('qwe.com', { params });
  },
  _details(params) {
    return http.get('aaa.com', { params });
  },
  // eslint-disable-next-line no-dupe-keys
  _commoditys(params) {
    return http.get('bbb.com', { params });
  },
};
